package edu.xhu.model.behavior.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("私聊消息DTO")
public class PrivateMessageDto {

    @NotNull(message = "接收用户id不可为空")
    @ApiModelProperty(value = "接收用户id")
    private Long toId;

    @NotEmpty(message = "发送内容不可为空")
    @ApiModelProperty(value = "发送内容")
    private String content;


}
